import { ReactNode } from 'react';

export interface MetaProps {
    key: string;
    title: string;
    icon?: ReactNode;
    requiresAuth?: boolean; // 是否验证权限
}

// export type RouteItem = RouteObject & { meta?: MetaProps; children?: Array<RouteItem> };

export interface RouteItem {
    children?: RouteItem[];
    element?: React.ReactNode;
    path?: string;
    meta?: MetaProps;
}
